<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Welkom bij WebBooks.com | <%=h yield :title %></title>

    <meta http-equiv="Content-type" content="text/html;charset=iso-8859-1" />

    <script type="text/javascript">
      Rails = {
        'controller' : "<%= @current_controller %>",
        'action' : "<%= @current_action %>"
      }
    </script>
    <%=stylesheet_link_tag :all %>
    <%=javascript_include_tag :all %>
  </head>

  <body>
    <div id="header">
      <div id="logo">WebBooks.com</div>
    </div>
    <div id="topright">
      <div id="account">
        <%= render :partial => 'account/home/topright', :locals => {:user => @account} %>
      </div>

      <div id="shoppingcart">
        <%= render :partial => 'carts/topright', :locals => {:cart => @cart} %>
      </div>
    </div>



    <div id="page">
      <div id="topbar">
        <div class="navigation">
          <%=link_to 'Home', root_path %>
          <%=link_to 'Zoeken', search_path %>
          <%=link_to 'Categorie&euml;n', categories_path %>
          <%=link_to 'Over ons', static_page_path("ons")%>
          <%=link_to 'Contact', static_page_path("contact")%>
        </div>

        <div class="search">
          <% form_tag(:controller => '/search', :action => 'set_query') do %>
            <%=text_field_tag :query, nil, :class => 'input' %>
            <%=submit_tag 'Zoeken', :class => 'button' %>
          <% end %>
        </div>
      </div>


      <div id="leftsidebar">

        <h2>Uw account</h2>
        <%=render :partial => 'account/home/navigation'%>

      </div>

      <div id="rightsidebar">

        <% if !@recommended_account_products.blank? %>
          <h2>Aangeraden</h2>
          <%=render :partial => 'products/sidebar', :locals => {:products => @recommended_account_products} %>
        <% end %>

      </div>

      <div id="contents">
        <h1><%=h yield :title %></h1>

        <% if flash[:notice] %>
          <div class="notice"><%= flash[:notice] %></div>
        <% end %>


<%# De width: 98% is om een bug in IE (alle versies) te voorkomen waarbij de tabel de breedte van het hele scherm krijgen i.p.v. de breedte van #contents. %>
        <div style="width: 98%;"><%= yield %></div>

      </div>


      <div id="policy"><%= link_to 'Privacy Policy',static_page_path("policy")%>
        <%= link_to 'Algemene Voorwaarden',static_page_path("voorwaarden")%>
        <div id="copyright"><%= link_to 'Copyright',static_page_path("copyright")%> 2010 WebBooks.com</div>
      </div>

    </div>
  </body>
</html>